For a Better Support of Static Data Flow

نویسندگان

  • Charles Consel
  • Olivier Danvy
چکیده

This paper identiies and solves a class of problems that arise in binding time analysis and more generally in partial evaluation of programs: the approximation and loss of static information due to dynamic expressions with static subexpressions. Solving this class of problems yields substantial binding time improvements and thus dramatically better results not only in the case of partial evaluation but also for static analyses of programs | this last point actually is related to a theoretical result obtained by Nielson. Our work can also be interpreted as providing a solution to the problem of conditionally static data, the dual of partially static data. We point out which changes in the control ow of a source program may improve its static data ow. Unfortunately they require one to iterate earlier phases of partial evaluation. We show how these changes are subsumed by transforming the source program into continuation-passing style (CPS). The transformed programs get specialized more tightly by a higher-order partial evaluator, without iteration. As a consequence, static values get frozen according to the specialization strategy and not due to the structure of the source programs. Our approach makes it possible to get better results without changing our partial evaluator, by using its higher-order capabilities more thoroughly. By construction, transforming source programs into CPS makes it yield better results, even in the particular case of self-application. New problems can even be tackled such as static deforestation by partial evaluation, specialization of contexts, and conditionally static data. This development concerns applicative order, side-eeect free functional languages because we consider existing self-applicable partial evaluators. We conjecture a similar improvement for lazy functional languages, based on the normal order CPS transformation.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A SVM model to predict the hot deformation flow curves of AZ91 magnesium alloy

Abstract In this work, a support vector machine (SVM) model was developed to predict the hot deformation flow curves of AZ91 magnesium alloy. The experimental stress-strain curves, obtained from hot compression testing at different deformation conditions, were sampled. Consequently, a data base with the input variables of the deformation temperature, strain rate and strain and the output variab...

متن کامل

Design and Development of Mathematical Model for Static Mixer

A numerical model for simulating Residence Time Distribution (RTD) of turbulent flows in helical static mixers is proposed and developed to improve the understanding of static mixers. The results of this model is presented in terms of different volumetric flow rate to illustrate the complicated flow patterns that drive the mixing process i...

متن کامل

Forecasting flow discharge through time series analysis using SARIMA model for drought conditions, a case study of Jamishan River

Nowadays, water supply is more limited and providing water is more difficult due to increasing population and demand for water. Thus, due to rainfall shortage and impacts of drought, the need for forecasting monthly and annual rainfall and flow discharge through time series analysis is acutely felt. One of the key assumption in time series is their static condition. However, hydrological time s...

متن کامل

investigation of mercaptan removal from Kerosene using passive mixing tools: Experimental study and CFD modeling

Abstract In this work, the role of appropriate mixing for mercaptan removal from Kerosene using caustic soda has been investigated in the pilot scale. Static mixer at different condition has been used as a passive mixing tool to achieve proper mixing and consequently high performance of mercaptan removal. Two lengths of static mixer including 20 and 40 cm as well as two pitches 1 and 3 m...

متن کامل

Effect of Soft Knee Support on Dynamic and Static Balance in the Male Elderly

Objectives: Joint supporters can caused increasing proprioceptive information. Such proprioceptive information is needed for balance. The purpose of this study was to determine the effect of soft knee support on static and dynamic balance tests in male elderly (65 years and older). Methods & Materials: Via a randomized clinical trial study design, 22 elderly were selected and divided into tw...

متن کامل

The effect of different feeding rates and restriction on the growth performance of Clarias gariepinus

This study seeks to investigate the effect of restricted feeding regimes at different rate on growth performance of Clarias gariepinus using static and flow through system. Fingerlings were divided into six batches for each systems with the first and second batch fed at 5% body weight (BW) every day and every other day respectively, the third and fourth batch were fed 10% BW every day and every...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1991